//
//  Touch.cpp
//  Prism
//
//  Created by Bas du Pre on 25-05-11.
//  Copyright 2011 UU. All rights reserved.
//

#include "graphics/Touch.h"

using namespace Prism;
using namespace Prism::Graphics;

Touch::Touch(PointF location, PointF previousLocation) : 
location(location), previousLocation(previousLocation) 
{ }

Touch::~Touch() {
    
}

bool Touch::touchesNode(Node *node) {
    for (unsigned int i = 0; i < touchedNodes.length(); i++) {
        if (touchedNodes[i] == node)
            return true;
    }
    return false;
}

Prism::PointF Touch::locationOnScreen() {
    return location;
}

Prism::PointF Touch::previousLocationOnScreen() {
    return previousLocation;
}

TouchEventArgs::TouchEventArgs() :
stop(true)
{
    
}

TouchesEventArgs::TouchesEventArgs() :
stop(true)
{
    
}
